Skip to content

Comments

feat: - UseCacheManager toolkit added#23

Merged
jlews merged 1 commit intomainfrom
feature/use-cache-manager
Mar 27, 2025
Merged

feat: - UseCacheManager toolkit added#23
jlews merged 1 commit intomainfrom
feature/use-cache-manager

Conversation

@jlews
Copy link
Contributor

@jlews jlews commented Mar 27, 2025

New utility hook for managing cache (useCacheManager) added!

It supports:

  • Invalidating cache by key (including special functions for invalidating infinite queries.)
  • Clearing all cache (probably on logout.)
  • Everything available via useSWRConfig , so no need to import this directly from swr any more.

@jlews jlews force-pushed the feature/use-cache-manager branch from e2071e7 to eb111c9 Compare March 27, 2025 10:38
@jlews jlews force-pushed the feature/use-cache-manager branch from eb111c9 to 7c14054 Compare March 27, 2025 10:40
@jlews jlews merged commit 6b013b4 into main Mar 27, 2025
1 check passed
@github-actions
Copy link

🎉 This PR is included in version 2.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant